﻿using DirectSell.Model.Money;
using DirectSell.Model.Query;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Webdiyer.WebControls.Mvc;

namespace Direct.IDAL.Manager.Money
{
    /// <summary>
    /// 提现审核仓储接口
    /// </summary>
    public interface IRealMoneyAuditRepository:IBaseManagerRepository
    {
        /// <summary>
        /// 查询记录
        /// </summary>
        /// <param name="condition"></param>
        /// <returns></returns>
        Task<PagedList<RealMoney>> QueryRecord(BaseCondition condition);
        /// <summary>
        /// 审核
        /// </summary>
        /// <param name="id"></param>
        /// <param name="type"></param>
        /// <param name="hstable"></param>
        void Audit(int id, int type, ref Hashtable hstable);
        /// <summary>
        /// 审核不通过退款
        /// </summary>
        /// <param name="usercode"></param>
        /// <param name="money"></param>
        /// <param name="hstable"></param>
        void Refund(string usercode, decimal money, ref Hashtable hstable);

    }
}
